﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using BCGC.BLL.BusinessObject;

public partial class Controls_wucLoadCMS : System.Web.UI.UserControl
{
    private CMS.CMSPages cmsPage;
    public CMS.CMSPages CMSPage
    {
        get { return cmsPage; }
        set { cmsPage = value; }
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            LoadData();
        }
    }

    private void LoadData()
    {
        CMS cms = CMS.GetCMSById((int)cmsPage);
        ltlLeftContent.Text = cms.CMSContent;
    }
}
